<%@page import="java.util.ArrayList"%>

<%@page import="cn.pzhu.edu.util.JdbcUtil"%>
<%@page import="cn.pzhu.edu.entity.User"%>
<%@page import="java.sql.*"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>显示</title>
</head>
<body>
<%
ArrayList<User> users=(ArrayList<User>)session.getAttribute("users");
ArrayList<User> list=(ArrayList<User>)session.getAttribute("list");
if(users!=null&&users.size()>0){
out.print("<table border=1>");
out.print("</td><td>用户名</td><td>密码</td></tr>");
for(User u:users){
out.print("<tr>");
out.print("<td>"+u.getName()+"</td>");
out.print("<td>"+u.getPassword()+"</td>");
out.print("</tr>");  }
out.print("</table>"); 
}
%>
</body>
</html>